import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import '@/assets/reset.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { registerMicroApps, start } from 'qiankun';

registerMicroApps([
  {
    name: 'one_app',
    entry: '//localhost:8081',
    container: '#mainApp',
    activeRule: '/app-one',
  },
  {
    name: 'two_app',
    entry: '//localhost:8082',
    container: '#mainApp',
    activeRule: '/app-two',
  }
]);
// 启动 qiankun
start();
const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.mount('#app')
